*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
section{
    position: relative;
    background-color: #f0f8ff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.6s;
}
section .card{
    position: relative;
    width: 300px;
    height: 380px;
    background: #fff;
    box-shadow: 1 25px 25px rgba(0,0,0,0.025);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.6s;
}
section .card .content,
section .card .text-img{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

section .card .text-img .img-box{
    position: relative;
    width: 110px;
    height: 110px;
    overflow: hidden;
    border-radius: 50%;
    border: 1px solid #2fa1ff;
    margin-bottom: 15px;
}
section .card .text-img .img-box img{/*让图片居中显示*/
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
section .card .text-img h3{
    font-weight: 500;
    font-size: 1.4em;
    color: #2fa1ff;
    line-height: 1.2em;
    text-align: center;
}
section .card .text-img h3 span{
    font-weight: 400;
    font-size: 0.75em;
    color: #777;
}
section .card  .sci{
    display: flex;
    margin-top: 15px;
}
section .card  .sci li{
    list-style: none;
}
section .card  .sci li a{
    position: relative;
    width: 40px;
    height: 40px;
    background-color: #e9f5ff;
    margin:  0 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #2fa1ff;
    text-decoration: none;
    border-radius: 50%;
    transition: 0.5s;
}
section .card  .sci li:hover a{
    transform: scale(1.3);
}
.toggle{
    width: 30px;
    height: 30px;
    position: absolute;
    top: 20px;
    right: 20px;
    background: #e9f5ff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.5s;
}
.toggle:hover{
    transform: scale(1.1);
}

/*黑夜*/
section.dark{
    background-color: #24292d;
}
section.dark .card{
    background-color: #323840;
}
section.dark .text-img h3 span{
    color: #ccc;
}
section.dark .sci li a{
    background-color: #404852;
}
section.dark .toggle{
    background-color: #404852;
    color: #2fa1ff;
}
